  <tr>
    <td width="70%" align="left" valign="top">
    <table>
    <tr>
    <td valign="top">
    <image id = "context_image" src = "/images/context_open.gif" onclick="toggle_visible('divQOTD');"/>
    </td>
    <td>
    <table>
    <tr><td  width="550">
    <%= content_tag "div", image_tag("/images/left3-disabled.gif", :id => "prev-arrow"), :id => "prev-arrow-container"  %>
    <%= carousel("html-carousel", {:var_name => "carousel",
                                   :size => @categories.size, :prevElementID => "'prev-arrow'", :nextElementID => "'next-arrow'", 
                                   :scrollInc => 1,
                                   :animParameters => {:duration => 0.5},
                                   :buttonStateHandler => "buttonStateHandler", :animHandler => "animHandler"}) do
        @categories.inject("") {|str, category| str + content_tag("li", link_to_remote("#{category.title}", :loading => "Element.hide('categories_div'), Element.show('loading-gif')", :complete => "Element.show('categories_div'), Element.hide('loading-gif')",:update=>"categories_div",:url => {:controller => "districts", :action => "ajaxshowcat", :id => @district, :cat => category})) + "\n" }
    end
    %>
    <%= content_tag "div", image_tag("/images/right3-enabled.gif", :id => "next-arrow"), :id => "next-arrow-container"  %>
    </td></tr>
    <tr><td>
     <%= image_tag("/images/loadingw.gif", :id => "loading-gif", :style => "display:none")%>
    <div id="divQOTD">
    <div id="categories_div">
    <%= render :partial => "catlist", :object => @categories[0].children %>
    </div>
    </div>
    </td></tr>
    </table>
    </td>
    </tr>
    </table>
           <%= render :partial=>'shared/posts', :object => @posts%>
    </td>
    <td width="30%" align="left" valign="top">
 <br/>
       <p class="la"><%= link_to "返回#{@district.title}", district_path(@district) %></p>
        
        <p class="sidebartitle">热门标签</p>
        <% tag_cloud district_tags(@district), %w(nube1 nube2 nube3 nube4 nube5) do |name, css_class| %> 
          <span class="<%=css_class%>">
          <%= link_to name, {:controller => 'tags', :action => 'tag', :id => name, :type => 'district', :type_id => @district}%>
          </span>
        <% end %>
        
        <p class="sidebartitle">最新用户</p>
        <%= render :partial => "shared/userlist", :object => @new_users %>
        <br/>
        <p class="la"><%= link_to "浏览所有成员", users_district_path(@district) %></p>
         
    </td>
  </tr>